package so.wy.servicecenter.businessbed.service.pay;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import so.wy.servicecenter.base.frame.baseopt.BaseOptService;
import so.wy.servicecenter.businessbed.dao.rdb.pay.PayDAO;
import so.wy.servicecenter.businessbed.dao.rdb.pay.PayDO;
import so.wy.servicecenter.businessbed.service.pay.dto.PayDTO;

@Service
@Scope("prototype")
public class PayService extends BaseOptService<PayDAO, PayDO, PayDTO> {

    @Override
    protected PayDTO convert2DTO(PayDO payDO) {
        return new PayDTO(payDO);
    }

    @Override
    protected PayDO convert2DO(PayDTO payQuery) {
        return payQuery.convert2DO();
    }
}
